package com.ysd.lis.entity.qc;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysd.lis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

/**
 * <p>
 * cold_chain.t_user
 * </p>
 *
 * @author peng
 * @since 2021-10-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("QC_MATERIAL_ITEM_RESULT")
public class QcMaterialItemResultQuery extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS", timezone="GMT+8")
    private Timestamp createTime;
    private String materialId;
    private String materialItemId;
    private String qcItemId;
    private String instrId;
    private String itemDictId;
    private String method;
    private String materialTargetId;
    private String batchNum;
    private String horizontal;
    private String qcNo;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @TableField(fill = FieldFill.UPDATE)
    private Timestamp qcDate;
    @TableField(exist = false)
    private String qcDateStr;
    private Integer qcSequence;
    private Double numResult;
    private String result;
    private Double mean;
    private Double sd;
    private Double z;
    private Boolean isAlarm;
    private String alarmRules;
    private Boolean isOutControl;
    private String outControlRules;
    private Boolean isOutControlHandled;
    private Boolean isBestInDay;
    /**
     * 仪器结果id
     */
    @TableField("INT_RESULT_ID")
    private String intResultId;
    @TableField(exist = false)
    private Double upperCUSUM;
    @TableField(exist = false)
    private Double lowCUSUM;
    @TableField(exist = false)
    private Integer n;
    @TableField(exist = false)
    private Double movingRange;
    @TableField(exist = false)
    private Double chartResult;
    @TableField(exist = false)
    private String itemDictName;
    @TableField(exist = false)
    private String itemDictCode;
    @TableField(exist = false)
    private String instrName;
    @TableField(exist = false)
    private String instrCode;
    @TableField(exist = false)
    private String rptGroupId;
    @TableField(exist = false)
    private String rptGroup;
    @TableField(exist = false)
    private String rptGroupName;
    @TableField(exist = false)
    private String correctResult;

}
